package com.wesley.growth.mybatis.mapper;

import com.wesley.growth.mybatis.entity.StudentEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface StudentMapper {

	StudentEntity getStudentById(int id);

	int addStudent(StudentEntity student);

	int updateStudentName(@Param("name") String name, @Param("id") int id);

	StudentEntity getStudentByIdWithClassInfo(int id);

    @Select("select 'stuName'")
    String findName();
}
